package com.kifas.model.xml;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class BukuHutangModel implements Serializable {

	private static final long serialVersionUID = -2287565511091757393L;

	private Long idBukuHutang;

	private Long idHutang;

	@XmlElement(name = "akunMasterModel", type = AkunMasterModel.class)
	private AkunMasterModel akunMaster;

	private BigDecimal debet;

	private BigDecimal kredit;

	private Date tanggal;

	private String keterangan;

	private String posting;

	private String noFaktur;

	private String deskripsi;

	private BigDecimal sisaBayar;

	private String createdBy;

	private Date createdDate;

	public BukuHutangModel() {
	}

	public BukuHutangModel(Long idBukuHutang, AkunMasterModel akunMaster, BigDecimal debet, BigDecimal kredit, Date tanggal, String keterangan, String posting,
			String noFaktur, String deskripsi, BigDecimal sisaBayar, String createdBy, Date createdDate) {
		this.idBukuHutang = idBukuHutang;
		this.akunMaster = akunMaster;
		this.debet = debet;
		this.kredit = kredit;
		this.tanggal = tanggal;
		this.keterangan = keterangan;
		this.posting = posting;
		this.noFaktur = noFaktur;
		this.deskripsi = deskripsi;
		this.sisaBayar = sisaBayar;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public BukuHutangModel(Long idBukuHutang, Long idHutang, AkunMasterModel akunMaster, BigDecimal debet, BigDecimal kredit, Date tanggal, String keterangan,
			String posting, String noFaktur, String deskripsi, BigDecimal sisaBayar, String createdBy, Date createdDate) {
		this.idBukuHutang = idBukuHutang;
		this.idHutang = idHutang;
		this.akunMaster = akunMaster;
		this.debet = debet;
		this.kredit = kredit;
		this.tanggal = tanggal;
		this.keterangan = keterangan;
		this.posting = posting;
		this.noFaktur = noFaktur;
		this.deskripsi = deskripsi;
		this.sisaBayar = sisaBayar;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getIdBukuHutang() {
		return idBukuHutang;
	}

	public void setIdBukuHutang(Long idBukuHutang) {
		this.idBukuHutang = idBukuHutang;
	}

	public AkunMasterModel getAkunMaster() {
		return akunMaster;
	}

	public void setAkunMaster(AkunMasterModel akunMaster) {
		this.akunMaster = akunMaster;
	}

	public BigDecimal getDebet() {
		return debet;
	}

	public void setDebet(BigDecimal debet) {
		this.debet = debet;
	}

	public BigDecimal getKredit() {
		return kredit;
	}

	public void setKredit(BigDecimal kredit) {
		this.kredit = kredit;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getPosting() {
		return posting;
	}

	public void setPosting(String posting) {
		this.posting = posting;
	}

	public String getNoFaktur() {
		return noFaktur;
	}

	public void setNoFaktur(String noFaktur) {
		this.noFaktur = noFaktur;
	}

	public String getDeskripsi() {
		return deskripsi;
	}

	public void setDeskripsi(String deskripsi) {
		this.deskripsi = deskripsi;
	}

	public void setSisaBayar(BigDecimal sisaBayar) {
		this.sisaBayar = sisaBayar;
	}

	public BigDecimal getSisaBayar() {
		return sisaBayar;
	}

	public void setIdHutang(Long idHutang) {
		this.idHutang = idHutang;
	}

	public Long getIdHutang() {
		return idHutang;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

}
